package club.xshiwu.springcloud.mapper;

import club.xshiwu.springcloud.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Intellij IDEA.
 * Date:  2020/6/12
 * @author xsw
 */
@Mapper
public interface OrderMapper {
    /**
     * 1、新建订单
     * @param order 订单实体类
     */
    void create(Order order);

    /**
     *
     * @param userId 用户id
     * @param status 订单状态 0， 1
     */
    void update(@Param("userId") Long userId,@Param("status") Integer status);
}
